home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / PPPPAP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-03  |  754 b   |  26 lines

  1. #ifndef _PPPPAP_H
  2. #define _PPPPAP_H
  3.                     /* PAP config packet codes */
  4. /* PAP control block */
  5. struct pap_s {
  6.     char *username;            /* Username for REQ */
  7.     char *password;            /* Password for REQ */
  8.     char *message;            /* message from last ACK/NAK */
  9.     struct proc *pp;        /* user/password process */
  10. };
  11.  
  12. #define PAP_REQ_TRY    100        /* REQ attempts */
  13. #define PAP_FAIL_MAX    5        /* # attempts from remote */
  14. #define PAP_TIMEOUT    3        /* Seconds to wait for response */
  15.  
  16.  
  17. int pap_local (struct ppp_s *ppp_p);
  18. int pap_remote (struct ppp_s *ppp_p);
  19. void pap_down (struct fsm_s *fsm_p);
  20. void pap_proc (struct fsm_s *fsm_p, struct mbuf *bp);
  21.  
  22. int doppp_pap (int argc, char *argv[], void *p);
  23. void pap_init    (struct ppp_s *ppp_p);
  24.  
  25. #endif /* _PPPPAP_H */
  26.